<?php
require_once("./include/bm_config.php");
require_once("./include/funcs.php");
if (isset($_SESSION['user_id']))
{
	$user_id = $_SESSION['user_id'];
	$user = $user_id;
	$sql = "SELECT `user_active0`, `user_active1`, `user_order0`, `user_order1`, `user_school` FROM `cr_user` WHERE `user_id`='$user'";
	$result = mysql_query($sql);
	$row = mysql_fetch_object($result);
	$user_active0 = $row->user_active0;
	$user_active1 = $row->user_active1;
	$user_order0 = $row->user_order0;
	$user_order1 = $row->user_order1;
	$user_school = $row->user_school;
}
$is_admin = isset($_SESSION['administrator']) || isset($_SESSION[$BM_ADMIN]);
//Message
$fp=fopen("admin/msg.txt","r");
$msg="";
while (!feof($fp))
{
	$strtmp=fgets($fp);
	$msg=$msg.$strtmp;
}

require_once("template/".$BM_TEMPLATE."/bm_header.php");
?>